package com.cwh.taskcenter.reward;

import com.alibaba.cola.dto.Response;
import com.cwh.taskcenter.reward.api.RewardService;
import com.cwh.taskcenter.reward.dto.GrantRewardCmd;
import com.cwh.taskcenter.reward.executor.command.GrantRewardCmdExe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cwh
 */
@Slf4j
@Service
public class RewardServiceImpl implements RewardService {

    @Autowired
    private GrantRewardCmdExe grantRewardCmdExe;

    @Override
    public Response grantReward(GrantRewardCmd req) {
        return grantRewardCmdExe.execute(req);
    }
}
